package com.ruoyi.store.service;
import com.ruoyi.stage.domain.StuStage;
import com.ruoyi.store.domain.StuQuestionStore;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface IStuQuestionStoreService {
    /**
     * 显示所有题库
     */
    List<StuQuestionStore> selectStuQuestionStoreList(StuQuestionStore stuQuestionStore);

    /**
     * 显示题库详细信息
     */
    StuQuestionStore  selectStoreById(Long storeId);

    /**
     * 添加题库
     */
    int insertStore(StuQuestionStore stuQuestionStore);


    /**
     * 根据名称查找题库
     * @param
     * @return
     */
    String checkStoreNameUnique(StuQuestionStore stuQuestionStore);

    /**
     * 修改题库
     */
    int updateStore(StuQuestionStore stuQuestionStore);

    /**
     * 删除题库
     */
    int   deleteStoreByIds(Long[] storeIds);

    /**显示所有题库
     *
     */

    List<StuQuestionStore> selectAllStores();

    List<Long> selectStuStoresListByQuesId(Long quesId);

    /**
     * 更新不同类型题目数量
     */
    int refreshStat(@Param("storeId") String storeId);

    Long selectStoreCounts(Long storeId);
}

